package com.tanhua.api.mongo;

import com.tanhua.domain.mongo.UserLike;
import com.tanhua.domain.vo.PageBeanVo;

import java.util.List;

public interface UserLikeApi {
    long findloveCount(Long id);

    long findfanCount(Long id);

    //查询我喜欢的数据
    PageBeanVo findUserListList(Integer page, Integer pagesize, Long id);

    //查询喜欢我的数据
    PageBeanVo findUserList(Integer page, Integer pagesize, Long id);

    void saveFans(UserLike userLike);

    void deleteUserLike(Long id, Integer uid);

    boolean isFirstUserLikeLastUser(Long firstUserId, Long lastUserId);

    void addFirstUserLikeLastUser(Long firstUserId, Long lastUserId);

    void deleteFirstUserLikeLastUser(Long firstUserId, Long lastUserId);

    List<Long> findUserLikeId(Long id) ;
}
